.lent {
    display: grid;
    grid-template-columns: repeat(3,350px);
    grid-template-rows: auto;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.lent_title {
    margin-top: 16px;
    font-size: 30px;
}

.lent_post {
    display: grid;
    grid-template-rows: 250px 50px 50px;
    background-color: #D6C8FF;
    padding: 10px;
    border-radius: 10px;
}

.post_image img {
    width: 330px;
    height: 250px;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.post_title {
    align-self: center;
    overflow: hidden;
}

.post_title a {
    color: black;
    font-weight: bold;
}

.post_title a:hover {
    color: #3A0088;
}

.post_description {
    color: black;
    overflow: hidden;
    text-align: justify;
}

/* Adaptive layout */

@media (max-width: 1160px){
    .lent {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: auto;
        justify-content: space-between;
        padding: 16px;
        gap: 30px;
    }

    .post_image img {
        width: 100%;
        height: 250px;
        border-radius: 5px 5px 0 0;
        object-fit: cover;
    }
}

@media (max-width: 650px){
    .lent {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto;
        justify-content: center;
        row-gap: 20px;
        padding: 16px;
    }
}